package com.alex.core.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author alex
 */
@RefreshScope
@Data
@Component
public class CoreProperties {
    @Value("${rocket.topic}")
    private String rocketTopic;

    @Value("${rocket.accessKey}")
    private String rocketAccessKey;

    @Value("${rocket.secretKey}")
    private String rocketSecretKey;

    @Value("${ons.addr}")
    private String onsAddr;

    @Value("${rocket.instance.id}")
    private String rocketInstanceId;

    @Value("${business.mq.group.id}")
    private String businessMqGroupId;

    @Value("${order.mq.group.id}")
    private String orderMqGroupId;

    @Value("${settle.mq.group.id}")
    private String settleMqGroupId;

    @Value("${business.mq.user.balance.tag}")
    private String businessMqUserBalanceTag;

    @Value("${order.mq.user.balance.tag}")
    private String orderMqUserBalanceTag;

    @Value("${car.order.mq.user.balance.tag}")
    private String carOrderMqUserBalanceTag;

    @Value("${settle.mq.tenant.balance.tag}")
    private String settleMqTenantBalanceTag;

    @Value("${business.mq.tenant.balance.tag}")
    private String businessMqTenantBalanceTag;

    @Value("${sms.update.account.info}")
    private String smsUpdateAccountInfo;

    @Value("${sms.message.code}")
    private String smsMessageCode;

    @Value("${sms.update.pay.info}")
    private String smsUpdatePayInfo;

    @Value("${oss.endpoint}")
    private String ossEndpoint;

    @Value("${oss.bucket.name}")
    private String ossBucketName;

    @Value("${oss.changchong.url}")
    private String ossChangChongUrl;

    @Value("${oss.saas.file.path}")
    private String ossSaaSFilePath;

    @Value("${saas.access.key}")
    private String ossAccessKeyId;

    @Value("${saas.access.secret}")
    private String ossAccessKeySecret;

    @Value("${order.auto.refund.tag}")
    private String orderAutoRefundTag;
}
